import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class MyText extends StatelessWidget {
  String _string;
  Color _color;
  double _fontSize;
  double _fontWeight;

  MyText(this._string, this._color, this._fontSize, this._fontWeight);

  @override
  Widget build(BuildContext context) {
    return Text(_string,style: TextStyle(color: _color,fontSize:_fontSize,fontWeight: _fontWeight==1?FontWeight.w900:FontWeight.w100),);
  }
}
